﻿#include <iostream>
#include <climits>
#include <iomanip>
using namespace std;

int main() {
	cout << "该处理系统的整型可以表示的数值：\n";

	cout << right << setw(20) << "char：" << CHAR_MIN << '~' << CHAR_MAX << '\n';
	cout << right << setw(20) << "signed char：" << SCHAR_MIN << '~' << SCHAR_MAX << '\n';
	cout << right << setw(20) << "unsigned char：" << 0 << '~' << UCHAR_MAX << '\n';

	cout << right << setw(20) << "short int：" << SHRT_MIN << '~' << SHRT_MAX << '\n';
	cout << right << setw(20) << "int：" << INT_MIN << '~' << INT_MAX << '\n';
	cout << right << setw(20) << "long int：" << LONG_MIN << '~' << LONG_MAX << '\n';

	cout << right << setw(20) << "unsigned short int：" << 0 << '~' << USHRT_MAX << '\n';
	cout << right << setw(20) << "unsigned int：" << 0 << '~' << UINT_MAX << '\n';
	cout << right << setw(20) << "unsigned long int：" << 0 << '~' << ULONG_MAX << '\n';

	cin.get();
}